package com.csailing4cloud.csailing.user.biz.service.impl;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.csailing4cloud.csailing.user.api.entity.CsUser;
import com.csailing4cloud.csailing.user.biz.service.UserService;
import com.csailing4cloud.csailing.user.service.CsUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author dyh
 * 用户服务
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Autowired
    private CsUserService csUserService;

    @LcnTransaction
    @Transactional
    @Override
    public void saveTest(CsUser csUser) {
        csUserService.save(csUser);
    }
}
